package com.bcxj.servicedriveruser.controller;

import com.bcxj.internalcommon.dto.ResponseResult;
import com.bcxj.internalcommon.entity.DriverUser;
import com.bcxj.servicedriveruser.mapper.DriverUserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * ClassName: TestController
 * Package: com.bcxj.servicedriveruser.controller
 * Description:
 *
 * @Author BCXJ
 * @Create 2024/10/17 23:19
 * @Version 1.0
 * @Since 1.0
 */
@RestController
@RequestMapping("/test")
public class TestController {

    @Autowired
    private DriverUserMapper driverUserMapper;

    @GetMapping
    public String test() {
        return "service driver user test";
    }


    @GetMapping("/getinfo")
    public ResponseResult getInfo() {
        DriverUser driverUser = driverUserMapper.selectById(1);
        return ResponseResult.success(driverUser);
    }

}
